package cn.yitun.chat.yitunservercommonlib.util;

import java.util.HashMap;
import java.util.Map;

public class R extends HashMap<String, Object> {
	private static final long serialVersionUID = 1L;

	public R() {}

	public static R param(String type, Object obj) {
		R r = new R();
		r.put(type, obj);
		return r;
	}

	public static R ok(String msg) {
		R r = new R();
		r.put("msg", msg);
		return r;
	}


	@Override
	public R put(String key, Object value) {
		super.put(key, value);
		return this;
	}
}
